import request from '../request'

export const employeeApi = {
  // 获取所有员工
  getAllEmployees: () => 
    request.get('/employee/all'),
    
  // 获取所有导游
  getAllGuides: () => 
    request.get('/employee/guides'),
    
  // 获取所有员工类型
  getEmployeeTypes: () => 
    request.get('/employee/types'),
    
  // 获取所有分公司
  getAllBranches: () => 
    request.get('/company/branches'),
    
  // 新增员工
  addEmployee: (data: any) => 
    request.post('/employee/insert', data),
    
  // 删除员工
  deleteEmployee: (id: number) => 
    request.delete(`/employee/deleteById/${id}`)
} 